import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';

const routes: Routes = [
  {
    path: '',
    redirectTo: '/app-home',
    pathMatch: 'full'
  },
  {
    path: 'app-home',
    loadChildren: './new-home/home.module#NewHomeModule',
    data: {
      breadcrumb: '总览',
      hasBreadcrumb: false
    }
  },
  { path: 'tourism-apm',
    loadChildren: './tourism/apm/apm.module#ApmModule'
  },
  { path: 'tourism-rm',
    loadChildren: './tourism/rm/rm.module#RmModule'
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes, { useHash: true })],
  exports: [RouterModule]
})
export class AppRoutingModule { }
